<include file="public@header" />
</head>
<body>
	<div class="wrap">
		
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('version/toEdit')}">
			<input type="hidden" name="post[type]" value="{$data.type.source}">
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">最新版本号</label>
				<div class="col-md-6 col-sm-6">
					 <input class="form-control" type="text" name="post[number]" required
                                   value="{$data.number}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">新版本大小<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-6">
					<input type="text" class="form-control"  required name="post[size]" value="{$data.size}" >
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">安装文件地址<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-6">
					<input type="text" class="form-control"  required name="post[url]" value="{$data.url}" >
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">最低可用本号<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-6">
					<input type="text" class="form-control"  required name="post[base_number]" value="{$data.base_number}" >
				</div>
			</div>
			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">非强制更新提示次数<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-6">
					<select name="post[time]" class="form-control">
						<option value="3" <if condition="3 == $data.time">selected</if> >每天最多提醒3次</option>
						<option value="2" <if condition="2 == $data.time">selected</if> >每天最多提醒2次</option>
						<option value="1" <if condition="1 == $data.time">selected</if> >每天最多提醒1次</option>
					</select>
					
				</div>
			</div>

			<div class="form-group">
				<label for="input-name" class="col-sm-2 control-label">提示文字<span class="form-required">*</span></label>
				<div class="col-md-6 col-sm-6">
					<textarea class="form-control content" name="post[content]" style="height: 300px;width: 100%;"
                                      placeholder="请填提示文字" required>{$data.content}</textarea>
				</div>
			</div>
			
				
			<div class="form-group button-a">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/frontend.js"></script>

</body>
</html>